package com.ddstation.common.mapper;

import com.ddstation.common.model.InvsItemInstitutionModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DtInvsItemInstitutionMapper {
	// 查询卫监分类项目(机构)
	public List<InvsItemInstitutionModel> searchInvsItemList(@Param("catalogId") Integer catalogId, @Param("institutionId") String institutionId);
	// 查询卫监分类项目数量(含删除状态)(机构)
	public int selectInvsItemAllCnt(@Param("catalogId") Integer catalogId, @Param("institutionId") String institutionId);
	// 初始化(从ma_invs_item复制到dt_invs_item_institution)
	public void initData(@Param("catalogId") Integer catalogId, @Param("institutionId") String institutionId);
	// 判断是否重复
	public List<String> checkByInvsItemName(@Param("catalogId") Integer catalogId, @Param("institutionId") String institutionId, @Param("name") String name);
	// 删除
	public int deleteInvsItem(@Param("catalogId") Integer catalogId, @Param("institutionId") String institutionId, @Param("id") Integer id);
	// 不显示
	public int disabledInvsItem(@Param("catalogId") Integer catalogId, @Param("institutionId") String institutionId, @Param("ids") List<Integer> ids);
	// 显示
	public int enableInvsItem(@Param("catalogId") Integer catalogId, @Param("institutionId") String institutionId, @Param("ids") List<Integer> ids);
	// 诊所显示的Item
	public List<InvsItemInstitutionModel> selectShowInvsItem(@Param("catalogId") Integer catalogId, @Param("institutionId") String institutionId);
	// 新增
	public int insertInvsItem(@Param("catalogId") Integer catalogId, @Param("institutionId") String institutionId, @Param("name") String name, @Param("comment") String comment);

	int insertReplace(InvsItemInstitutionModel record);

	int insertByList(List<InvsItemInstitutionModel> list);

}
